cmake_minimum_required(VERSION 3.9)
project(hacks)

set(CMAKE_CXX_STANDARD 14)

#define  PLATFORM_WIN 1
#define  PLATFORM_LINUX 1
#define  PLATFORM_APPLE 1

if (APPLE)
    add_definitions(-DPLATFORM_APPLE=1)
ELSEIF (WIN32)
    add_definitions(-DPLATFORM_WIN=1)
ELSE (LINUX)
    add_definitions(-DPLATFORM_LINUX=1)
endif ()

include_directories(${PROJECT_SOURCE_DIR})

add_subdirectory(hacks/base)
add_subdirectory(hacks/net)

add_executable(hacks-exec engine.cpp)

target_link_libraries(hacks-exec hacks-base hacks-net)
